<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8" name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>我们的小窝-个人资料</title>
    <!--<link rel="stylesheet" href="css/bootstrap.css">-->
    <link rel="stylesheet" href="css/bootstrap.min-3.3.7-blue.css">
    <link rel="stylesheet" href="css/style.css">
    <style>
        h2{
            margin-top: 1em;
        }
    </style>
</head>
<body id="userData">
<!--导航-->
<nav class="navbar navbar-default navbar-fixed-top">
    <!--小屏幕按钮和logo-->
    <div class="container">
        <div class="navbar-header">
            <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <h1><a href="index.html" class="navbar-brand">我们的小窝</a></h1>
        </div>
        <!--小屏幕按钮和logo-->

        <div class="navbar-collapse collapse navbar-right">
            <ul class="nav navbar-nav">
                <li><a href="index.html"><span class="glyphicon glyphicon-home"></span>首页</a></li>
                <li><a href="articleList.html"><span class="glyphicon glyphicon-list-alt"></span>博文列表</a></li>
                <li><a href="chat.html"><span class="glyphicon glyphicon-heart"></span>聊天室</a></li>
                <li><a href="music.html"><span class="glyphicon glyphicon-music"></span>音乐天地</a></li>
                <li class="hidden" style="padding: 5px"><a style="padding: 0"><button id="loginBtn" class="btn btn-success"><span class="glyphicon glyphicon-user"></span>登录/注册</button></a></li>
                <!--登录后显示用户名-->
                <li class="btn-success"><a href="userData.html"><span class="glyphicon glyphicon-user"></span>张晓宇</a></li>
            </ul>
        </div>
    </div>
</nav>
<!--导航-->

<div class="container">
    <div class="row">
        <div class="page-header">
            <h2 class="text-center">个人资料</h2>
        </div>
        <div class="col-md-10 col-md-offset-1">
            <div class="row">
                <div class="col-md-8 col-md-offset-2">
                    <div class="headIcon text-center">
                        <img class="img-responsive" src="img/user_zhizhe.jpg" alt="用户头像">
                    </div>
                </div>
            </div>
            <div class="col-md-12">
                <div class="row btns text-center">
                    <a class="btn btn-primary" href="userDataEdit.html">编辑资料</a>
                    <a class="btn btn-primary" href="articleManage.html">管理文章</a>
                    <a class="btn btn-primary" href="articlePublish.html">发表文章</a>
                </div>
        </div>
            <div class="row">
                <div class="col-md-5">
                    <table class="table table-responsive">
                        <tbody>
                        <tr><td>姓名：</td><td id="username">智者 <span id="sex">（男）</span></td></tr>
                        <tr><td>邮箱：</td><td id="email">934147176@qq.com</td></tr>
                        <tr><td>手机号码：</td><td id="tel">18912345678</td></tr>
                        <tr><td>出生日期：</td><td id="birthday">1991-12-31</td></tr>
                        <tr><td>从事职业：</td><td id="profession">PHP编程</td></tr>
                        <tr><td>兴趣爱好：</td><td id="interest">弹钢琴，学佛，做好事，敲代码……</td></tr>
                        <tr><td>qq号码：</td><td id="qq">934147176</td></tr>
                        <tr><td>微信号码：</td><td id="weixin">???</td></tr>
                        <tr><td class="text-left" colspan="2"><strong>自我介绍：</strong><div class="text-left" id="selfIntroduction"></div></td></tr>
                        </tbody>
                    </table>
                </div>
                <div class="col-md-7">
                    <div id="viewChart" style="height: 30em;width: 100%;"></div>
                </div>
            </div>

        </div>
    </div>
</div>
<div id="bgMusic">
    <audio autoplay controls loop src="">
        <div class="alert alert-danger alert-dismissible" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <strong>您的浏览器不支持背景音乐播放，请升级浏览器！</strong>
        </div>
    </audio>
</div>


<footer id="footer" class="btn-primary">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-12">
                <p>Copyright © 2012-2015&nbsp;&nbsp;<span class="hidden-xs">http://e-art.taobao.com</span>&nbsp;&nbsp;<br
                        class="visible-xs">鲁ICP备12345678号-4&nbsp;&nbsp;</p>
            </div>
        </div>
    </div>
</footer>

<script src="js/echarts.common.min.js"></script>
<script src="js/jquery-2.2.4.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/main.js"></script>
<script>
    $(function () {
        $("#selfIntroduction").text("　我于1991年12月31日出生于山西长治，妈妈生我的那一天下着一场很大的雪。是我们那里数十年来最大的一场雪，\我" +
            "听说出生在下大雪的孩子个性很强，不管这句话是否真实，但我的确很有个性：坚强、勇敢、自信。\我" +
            "身高177cm，体重60kg。\n"+
            "    每个人都有自己的梦想，我的梦想就是写好代码，有空玩玩音乐学学佛，如果可能就多帮助别人。我" +
            "的个性很直爽，希望愿意与我交朋友的人都加入我的博客。大家在一起可以海阔天空的谈论，\不" +
            "管是国家地理还是人文知识还是古代智慧及各路明星，我都可以和你们一起畅谈。");

    })
</script>
<script>
    $(function () {
        // 基于准备好的dom，初始化echarts实例
        var myChart = echarts.init(document.getElementById('viewChart'));

        // 指定图表的配置项和数据
        var option = {
            title: {
                text: '我的文章浏览量及评论数',
                left: 20,
                top: 10
            },
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'cross',
                    label: {
                        backgroundColor: '#6a7985'
                    }
                }
            },
            legend: {
                data: ['浏览量', '评论数'],
                right: 20,
                top: 30
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: [
                {
                    type: 'category',
                    boundaryGap: false,
                    data: [getDay(day + 1), getDay(day + 2), getDay(day + 3), getDay(day + 4), getDay(day + 5), getDay(day + 6), getDay(day)]
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '评论数',
                    type: 'line',
                    stack: '总量',
                    areaStyle: {
                        normal: {
                            color: "rgba(250,100,20,0.6)"
                        }
                    },
                    data: [7, 9, 6, 11, 20, 15, 18]
                },
                {
                    name: '浏览量',
                    type: 'line',
                    stack: '总量',
                    areaStyle: {
                        normal: {
                            color: "rgba(250,200,20,0.6)"
                        }
                    },
                    data: [39, 44, 24, 35, 60, 40, 55]
                }
            ]
        };

        // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);
    });
</script>
</body>
</html>